/*@import './base.css';*/

/*#app {*/
/*  !*max-width: 1280px;*!*/
/*  !*margin: 0 auto;*!*/
/*  !*padding: 2rem;*!*/
/*  font-weight: normal;*/
/*}*/

/*a,*/
/*.green {*/
/*  text-decoration: none;*/
/*  color: hsla(160, 100%, 37%, 1);*/
/*  transition: 0.4s;*/
/*  padding: 3px;*/
/*}*/

/*@media (hover: hover) {*/
/*  a:hover {*/
/*    background-color: hsla(160, 100%, 37%, 0.2);*/
/*  }*/
/*}*/

/*@media (min-width: 1024px) {*/
/*  body {*/
/*    display: flex;*/
/*    place-items: center;*/
/*      background-color: #F2F1EF; !* 设置背景色 *!*/
/*  }*/

/*  #app {*/
/*    !*display: grid;*!*/
/*    !*grid-template-columns: 1fr 1fr;*!*/
/*    !*padding: 0 2rem;*!*/
/*  }*/
/*}*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #5d8aa8;
    --secondary-color: #f5f5f5;
    --accent-color: #e6b89c;
    --text-color: #333;
    --light-text: #777;
    --border-color: #e0e0e0;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.search-bar {
    display: flex;
    width: 40%;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-bar button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.user-actions button {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
}

.main-content {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.stats-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.stats-panel h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    background: var(--secondary-color);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 5px;
}

.filter-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    padding: 6px 12px;
    background: var(--secondary-color);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-option:hover {
    background: #e0e0e0;
}

.filter-option.active {
    background: var(--primary-color);
    color: white;
}

.closet-content {
    flex: 1;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sort-options {
    display: flex;
    gap: 10px;
}

.sort-option {
    padding: 8px 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.sort-option:hover {
    background: var(--secondary-color);
}

.sort-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-option {
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.view-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.clothing-grid {
    display: flex;
    /*grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));*/
    gap: 30px;
}

.clothing-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.clothing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card-image {
    height: 180px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    position: relative;
}

.card-image i {
    font-size: 48px;
}

.card-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.card-actions {
    display: flex;
    justify-content: space-between;
}

.card-action {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-action:hover {
    color: #4a708c;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--light-text);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--border-color);
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .search-bar {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .search-bar {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        width: 100%;
    }

    .clothing-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}
